<template>
	<view class="classifyLayout">
		
		<my-nav-bar title="分类"></my-nav-bar>
		
		<view class="classify">
			<theme-item v-for="item in 15"></theme-item>
			<theme-item v-for="item in classifyList" :key="item._id" :item="item"></theme-item>
		</view>
		
	</view>
</template>

<script setup>
	import { ref } from 'vue';	
	import { api_getClassify } from "@/api/apis.js"
	const classifyList = ref( [] );
	
	const getClassify = async function(){
		let res = await api_getClassify( {pageSize:20} );
		classifyList.value = res.data;
		console.log("getClassify(): ");
		console.log(res);
	}
	
	getClassify();
</script>

<style lang="scss" scoped>
	.classify{
		padding: 30rpx;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 15rpx;
	}

</style>
